

package com.maoshi.shop.groupbuy.comment.api.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author 小懒虫
 * @date 2019/8/30 10:32
 */
@Data
public class ApiGroupTeamDto {

    @ApiModelProperty("拼团团队id")
    private Long groupTeamId;

    @ApiModelProperty("活动成团人数")
    private Integer groupNumber;

    @ApiModelProperty("已参团人数")
    private Integer joinNum;

    @ApiModelProperty("结束时间")
    private Date endTime;

    @ApiModelProperty("服务器当前时间")
    private Date nowTime;

    @ApiModelProperty("团长user_Id")
    private String shareUserId;

    @ApiModelProperty("团长昵称")
    private String shareNickName;

    @ApiModelProperty("团长头像")
    private String sharePic;

    @ApiModelProperty("团订单状态(0:待成团，1:拼团中，2:拼团成功，3:拼团失败)")
    private String status;

    /**
     * 店铺ID
     */
    @JsonIgnore
    private Long shopId;

    /**
     * 拼团商品ID
     */
    @JsonIgnore
    private Long groupProdId;

    /**
     * 获取服务器当前时间
     */
    public Date getNowTime() {
        return new Date();
    }
}
